import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {GooInWarehouseComponent} from './goo-in-warehouse.component';

const routes: Routes = [
    {
        path: '', component: GooInWarehouseComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-goo-in-warehouse/add-goo-in-warehouse.module#AddGooInWarehouseModule'},
            {path: 'list', loadChildren: './list-goo-in-warehouse/list-goo-in-warehouse.module#ListGooInWarehouseModule'},
            {path: 'modify', loadChildren: './modify-goo-in-warehouse/modify-goo-in-warehouse.module#ModifyGooInWarehouseModule'},
            {path: 'report', loadChildren: './report-goo-in-warehouse/report-goo-in-warehouse.module#ReportGooInWarehouseModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class GooInWarehouseRoutingModule {
}
